@import './search.scss';

.search-container {
  .goods-nav {
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    align-items: center;


    .goods-nav-bar {
      flex: 1;
      height: 2rem;
      line-height: 2rem;

      display: flex;
      display: -webkit-flex;
      justify-content: space-between;
      align-items: center;

      .icons {
        width: 2rem;
        height: 2rem;
        background: url(../../../img/home/card.png) no-repeat center;
        background-size: 50%;
      }

      .icon-toggle {
        background-image: url(../../../img/home/list.png);
      }
    }

    a {
      color: inherit;

      span {
        margin-left: 0.5rem;
        font-size: 0.6rem;
      }
    }

    .dropdown {
      position: relative;
    }

    .dropdown-content {
      position: absolute;
      top: 2rem;
      left: 0;
      z-index: 10;
      width: 100%;
      display: none;
      background: #fff;
      box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.3);

      ul {
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;

        li {
          width: 100%;
          display: -webkit-flex;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          padding: 0 0.5rem;
          position: relative;
          border-bottom: 1px solid #e5e5e5;

          a {
            width: 100%;
          }

          a:hover {
            background: #f8f8f8;
          }

          a.active {
            color: #F86706;
          }
        }
      }
    }

  }
  .container {

    .goods-list {
      display: none;

      .card_box__content {
        p {
          padding: 0;
        }

        .label-box {
          box-sizing: border-box;
          padding: 0.5rem 0;

          .label {
            box-sizing: border-box;
            margin-right: 0.2rem;
            padding: 0.2rem 0.5rem;
            border-radius: 1.35rem;
            border: 1px solid #e1e1e1;

            &:nth-last-child(1) {
              margin-right: 0;
            }
          }
        }
      }

      .tab {
        min-height: 300px;
      }


      .list-block {
        ul {

          &::before,
          &::after,
          li::after {
            content: '';
            height: 0px;
            width: 0px;
            background: transparent;
          }
        }
      }
    }

    .news {
      .card_flex__inner {
        padding: 0.2rem 0;

        .label-box {
          font-size: 0.75rem;
        }
      }

      .no-img {
        margin-left: 0;
      }

      .list-block {
        ul {

          &::before,
          &::after {
            content: '';
            height: 0px;
            width: 0px;
            background: transparent;
          }
        }
      }
    }
  }
}


/* 全部商品样式 */
.all-goods {
  .goods-nav {
    position: sticky;
    background-color: #eee;
    top: 0;
    left: 0;
    z-index: 99;
    .goods-nav-bar {
      a {
        width: 100%;
        text-align: center;
      }
    }
  }
}